From 9534deda19c6ec95a2917072404211890af5b132 Mon Sep 17 00:00:00 2001 From: Hubert Figuiere Date: Sat, 16 May 2009 03:27:03 -0400 Subject: [PATCH] Add extern "C" to the header for C++ friendliness. --- ChangeLog | 6 ++++++ babl/babl.h | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index af0850a..13a62ce 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-05-16 Hubert Figuiere + + Add extern "C" to the header for C++ friendliness. + + * babl/babl.h + 2009-04-04 Martin Nordholts Bug 568576 – [PATCH] undefined operation fix diff --git a/babl/babl.h b/babl/babl.h index c9d7608..44276a4 100644 --- a/babl/babl.h +++ b/babl/babl.h @@ -19,6 +19,10 @@ #ifndef _BABL_H #define _BABL_H +#ifdef __cplusplus +extern "C" { +#endif + #define BABL_INSIDE_BABL_H #include #include @@ -192,4 +196,8 @@ Babl * babl_conversion_new (void *first_arg, #endif +#ifdef __cplusplus +} +#endif + #endif -- 2.30.2